﻿<%@ page title="" language="C#" masterpagefile="~/MasterPages/MasterPage.master" autoeventwireup="true" inherits="Pages_Public_Testimonials, BtcHousing" stylesheettheme="ServerControls" %>
<%@ Register Src="~/UserControls/Pager.ascx" TagName="Pager" TagPrefix="UC" %>

<asp:Content ID="Content1" ContentPlaceHolderID="PageHeader" Runat="Server">
    <style type="text/css">
        .AdverstisementImage { border:#FFFFFF 2px solid; }
        .AdverstisementImage:hover { border:#115a08 2px solid; }
    </style>
    <script language="javascript" type="text/javascript">
        function ShowDetailsImage(imageUrl) {
            var url = '/Pages/Public/ImageDetails.aspx?<%=AppConstants.QueryString.ID %>=' + imageUrl;
            ShowCenteredPopUp(url, 'ImageDetails', 700, 450, true);
        }
    </script>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="PageBody" Runat="Server">
    <h4 id="h4Heading" runat="server">Testimonial List</h4>

    <div>        
        <asp:DataList ID="dlTestimonials" runat="server" CellPadding="5" RepeatColumns="3">
            <ItemTemplate>
                <div>
                    <a href="javascript:void(0);" onclick="ShowDetailsImage('<%# GetImageUrl(DataBinder.Eval(Container.DataItem, "Image") as String) %>');">
                        <img class="AdverstisementImage" src='<%# AppConstants.TESTIMONIAL_FILES %>/<%# DataBinder.Eval(Container.DataItem, "ThumbImage")%>' alt="Click to View Large" title="Click to View Large" />
                    </a>
                    <div>
                        <%--Received Date: --%><%# WebUtil.FormatData(DataBinder.Eval(Container.DataItem, "PublishDate"))%>
                    </div>
                </div>                
            </ItemTemplate>
        </asp:DataList>        
    </div>
    <div style="margin-top:10px;">
        <UC:Pager ID="ucTestimonialListPager" runat="server" TotalRecordMessage="Total {0} Testimonial(s) Found." OnPageIndexChanged="ucTestimonialListPager_PageIndexChanged" />
    </div>
</asp:Content>


